﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="control.aspx.cs" Inherits="SICOIA.Marcos.control"
    Culture="Auto" UICulture="Auto" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs">
<head runat="server">
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta name='robots' content='all, follow' />
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    <title>::: Sistema De Control Integral De Afectaciones :::</title>
    <script type="text/javascript" src="../Includes/js/jsCliente.js"></script>
    <link href="../Includes/public/css/default.css" rel="stylesheet" type="text/css"
        media="screen" />
    <link href="../Includes/public/css/style.css" rel="stylesheet" type="text/css" media="screen" />
    <link href="../Includes/public/css/wysiwyg.css" rel="stylesheet" type="text/css"
        media="screen" />
    <link href="../Includes/public/css/fancybox-1.3.1.css" rel="stylesheet" type="text/css"
        media="screen" />
    <link href="../Includes/public/css/visualize.css" rel="stylesheet" type="text/css"
        media="screen" />
    <script type="text/javascript" src="../Includes/public/js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="../Includes/AutoIFrame/jquery.iframe-auto-height.plugin.1.6.0.min.js"></script>
    <script type="text/javascript" src="../Includes/AutoIFrame/jquery.iframe-auto-height.js"></script>
    <script type="text/javascript" src="../Includes/public/js/jquery.dimensions.min.js"></script>
    <!-- // Tabs // -->
    <script type="text/javascript" src="../Includes/public/js/ui.core.js"></script>
    <script type="text/javascript" src="../Includes/public/js/jquery.ui.tabs.min.js"></script>
    <!-- // Tablas y columnas // -->
    <script type="text/javascript" src="../Includes/public/js/tablednd.js"></script>
    <!-- // Date Picker // -->
    <script type="text/javascript" src="../Includes/public/js/date.js"></script>
    <!-- // Editor Wysiwyg // -->
    <script type="text/javascript" src="../Includes/public/js/jquery.wysiwyg.js"></script>
    <!-- // Graphs // -->
    <script type="text/javascript" src="../Includes/public/js/jquery.visualize.js"></script>
    <!-- // Fancybox // -->
    <script type="text/javascript" src="../Includes/public/js/jquery.fancybox-1.3.1.js"></script>
    <!-- // File upload // -->
    <script type="text/javascript" src="../Includes/public/js/jquery.filestyle.js"></script>
    <script type="text/javascript" src="../Includes/public/js/init.js"></script>
    <script type="text/javascript">
        var ModalProgress = '<%= ModalProgress.ClientID %>';    
    </script>
    <script type="text/javascript">
        function mostrarCargando() {
            $find(ModalProgress).show();
        }

        function NoMostrarCargando() {
            $find(ModalProgress).hide();
        }
        function GoPage(Url, Param) {
            try {
                $('#myframe').attr('src', 'ProxyUserControls.aspx?Url=' + Url + Param);
            }
            catch (e)
        { }
    }

    function VerPendientes() {

        $('#myframe').attr('src', '<%= pantallaBandeja %>');
    }

     function DoLogout() {
         __doPostBack('logout', 'logout')
     }
    </script>
</head>
<body>
    <form id="frm_control" class="formBox" runat="server">
    <asp:ToolkitScriptManager ID="ScriptManagerControl" runat="server" AsyncPostBackTimeout="36000">
    </asp:ToolkitScriptManager>
    <script type="text/javascript" src="../Includes/js/jsUpdateProgress.js"></script>
    <div id="main">
        <!-- #header -->
        <div id="header">
            <!-- #logo -->
            <div id="logo">
                <a href="#"><span>Control de Obras</span></a>
            </div>
            <!-- /#logo -->
            <!-- #user -->
            <div id="user">
                <h2>
                    <asp:Label runat="server" ID="lblUsuario"></asp:Label> <span><asp:Label runat="server" ID="lblRol" /></span></h2>
                 <a href="Javascript:VerPendientes();"><asp:Label runat="server" ID="lblTotalPendientes"></asp:Label> &nbsp;Obras Pendientes</a> - <a href="#" onclick="Javascript:DoLogout();">logout</a>
            </div>
            <!-- /#user -->
        </div>
        <!-- /header -->
        <!-- #sidebar -->
        <div id="sidebar">
            <!-- mainmenu -->
            <ul id="floatMenu" class="mainmenu">
                <li class="first"><a href="#">Tablero de Control</a></li>
                <li><a href="#">Mi Bandeja</a>
                    <ul class="submenu">
                        <li><a href=<%= pantallaInicial %> target="myframe">Mi Bandeja</a></li>
                    </ul>
                </li>
                <li id="liMenuSolicituides" runat="server"><a href="#">Solicitudes</a>
                    <ul class="submenu">
                        <li><a href="ProxyUserControls.aspx?Url=Solicitud" target="myframe">Agregar</a></li>
                        <li><a href="ProxyUserControls.aspx?Url=BusquedaSolicitudPadre" target="myframe">Consulta</a></li>
                    </ul>
                </li>
                <li id="liMenuAfectadosFederales" runat="server" visible="false" ><a href="#">Afectados Federales</a>
                    <ul class="submenu">
<%--                        <li><a href="ProxyUserControls.aspx?Url=AfectadosFederales" target="myframe">Agregar</a></li>--%>
                        <li><a href="ProxyUserControls.aspx?Url=BusquedaAfectadosFederales" target="myframe">
                            Consulta</a></li>
                    </ul>
                </li>
                <li id="liMenuObra" runat="server"><a href="#">Obras</a>
                    <ul class="submenu">
                        <li><a href="ProxyUserControls.aspx?Url=Obra" target="myframe">Agregar</a></li>
                        <li><a href="ProxyUserControls.aspx?Url=BusquedaObra" target="myframe">Consulta</a></li>
                    </ul>
                </li>
                <li id="liMenuAfectadosParticulares" runat="server" visible="false" ><a href="#">Cat. Afectados</a>
                    <ul class="submenu">
<%--                        <li><a href="ProxyUserControls.aspx?Url=AfectadosParticulares" target="myframe">Agregar</a></li>--%>
                        <li><a href="ProxyUserControls.aspx?Url=BusquedaAfectadosParticulares" target="myframe">
                            Consulta</a></li>
                    </ul>
                </li>
                <li id="liMenuPredios" runat="server"><a href="#">Cat. Predios</a>
                    <ul class="submenu">
                        <li><a href="ProxyUserControls.aspx?Url=PrediosAfectados" target="myframe">Agregar</a></li>
                        <li><a href="ProxyUserControls.aspx?Url=BusquedaPrediosAfectados" target="myframe">Consulta</a></li>
                    </ul>
                </li>
            </ul>
            <!-- /.mainmenu -->
        </div>
        <!-- /#sidebar -->
        <!-- #content -->
        <div id="content">
            <!-- breadcrumbs -->
            <div class="breadcrumbs">
                <ul>
                    <li><a href="#">Inicio</a></li>
                    <li><a href="#">Categoría</a></li>
                    <li><a href="#">Sub Categoría</a></li>
                    <li class="active">Formularios y Tablas</li>
                </ul>
            </div>
            <!-- /breadcrumbs -->
            <!-- box -->
            <iframe id="myframe" name="myframe" width="100%" frameborder="0" scrolling="no" src='<%= pantallaInicial %>'>
            </iframe>
            <!-- /box -->
        </div>
        <!-- /#content -->
        <!-- #footer -->
        <div id="footer">
            <p>
                © 2012 PEMEX Exploración y Producción | <a href="#main">Inicio</a></p>
        </div>
        <!-- /#footer -->
    </div>
    <!-- /#main -->
    <asp:Panel ID="panelUpdateProgress" runat="server" SkinID="modalprogress">
        <asp:UpdateProgress ID="UpProgress" runat="server" DisplayAfter="0" DynamicLayout="false">
            <ProgressTemplate>
                <div style="position: relative; top: 0%; text-align: center; vertical-align: middle;">
                    <img src="../Includes/imagenes/gral/cargando.gif" alt="Procesando" />
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
    </asp:Panel>
    <asp:ModalPopupExtender ID="ModalProgress" runat="server" TargetControlID="panelUpdateProgress"
        BackgroundCssClass="modalBackground" PopupControlID="panelUpdateProgress">
    </asp:ModalPopupExtender>
    </form>
    <script type="text/javascript">
        jQuery('iframe').iframeAutoHeight({ debug: false, diagnostics: false });
    </script>
</body>
</html>
